package com.wangzh.nio.commonsio;

import org.apache.commons.io.FileUtils;
import org.springframework.util.FileCopyUtils;

import java.io.File;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {
        File src = new File("b.txt");
        File dest = new File("bcopy.txt");
        FileUtils.copyFile(src,dest);
    }
}
